<template>
  <div>
    <h3>电影详情</h3>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
import { filmDetail } from "@/model/maizuo";
export default {
  methods: {
    ...mapMutations(["changeFlag"]),
  },
  async created() {
    this.changeFlag(false);
    let res = await filmDetail({
      filmId: this.$route.params.id,
      k: 5302713,
    });
    console.log(res);
  },
  destroyed() {
    this.changeFlag(true);
  },
};
</script>

<style></style>
